package com.example.myowntodo.fet_xhttpdemo.entity

data class Book(
    val bookId:Int,
    val name: String,
    val price: Float,
    val author: String,
    val salesVolume: Int,
    val score: Int,
    val mark: Int,
    val description: String,
    val picture: String,
    )


//class Book {
//    var bookId: Int? = null
//
//    var name: String? = null
//        set(name) {
//            field = name?.trim { it <= ' ' }
//        }
//
//    var price: Float? = null
//
//    var author: String? = null
//        set(author) {
//            field = author?.trim { it <= ' ' }
//        }
//
//    var salesVolume: Int? = null
//
//    var score: Int? = null
//
//    var mark: Int? = null
//
//    var description: String? = null
//        set(description) {
//            field = description?.trim { it <= ' ' }
//        }
//
//    var picture: String? = null
//        set(picture) {
//            field = picture?.trim { it <= ' ' }
//        }
//}
